package com.cn.kabalifemerchants.ui.login.adapter;

import androidx.annotation.Nullable;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.cn.kabalifemerchants.R;
import com.cn.kabalifemerchants.ui.login.bean.AddressProvinceListBean;

import java.util.List;

/**
 * Created by 晓林 on 2020/9/4.
 * function:
 */
public class AddressCheckAdapter extends BaseQuickAdapter<AddressProvinceListBean.ResultBean, BaseViewHolder> {
    public AddressCheckAdapter(int layoutResId, @Nullable List<AddressProvinceListBean.ResultBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, final AddressProvinceListBean.ResultBean item) {
//        GlideUtil.ImageLoad(this.mContext, item.getList_img(), helper.getView(R.id.list_img));
        helper.setText(R.id.tv_name, item.getName());
//                .setText(R.id.present_price, item.getPresent_price())
//                .setText(R.id.tv_ton, item.getTon() + "吨/车")
//                .setText(R.id.total_num, String.valueOf(item.getTotal_num()));
    }
}
